﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace sands
{
    public partial class frmDeposit : SandsForm
    {
        public frmDeposit()
        {
            ctlIndex = new Control();
            ctlStreet = new Control();
            ctlZipCity = new Control();
            ctlHome = new Control();
            ctlMums = new Control();
            ctlDads = new Control();
            ctlMobile = new Control();
            ctlDate = new DateTimePicker();

            rbAdult = new RadioButton();
            rbDiscount0 = new RadioButton();
            rbDiscount10 = new RadioButton();
            rbDiscount20 = new RadioButton();
            rbDiscount30 = new RadioButton();
            cbRate = new CheckBox();
            cbTuition = new CheckBox();

            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (!Checker.isUint(txtValue.Text))
            {
                System.Windows.Forms.MessageBox.Show("Proszę podać poprawną kwotę.", "Niepoprawna kwota", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Exclamation);
                DialogResult = DialogResult.None;
            }
        }
    }
}
 